"""
本文件处理redis 的相关操作
"""
from aredis import StrictRedis as Async_StrictRedis
from redis import StrictRedis


class Aredis_handler:
    def __init__(self, config) -> None:
        self.redis = Async_StrictRedis(**config)
        print("aredis {} 链接成功".format(config["host"]))


class Redis_handler:
    def __init__(self, config) -> None:
        self.redis = StrictRedis(**config)
        print("redis {} 链接成功".format(config["host"]))
